package com.tinyseed.emcp.api.productionRule.entity;

import com.tinyseed.hmxx.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @Description
 * @Author Henry
 * @Date 2019-12-18
 */

@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
@Table(name = "tb_produceset_enterprise")
public class Distribution extends BaseEntity {

    /**
     * 唯一主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "hm_seq")
    @SequenceGenerator(name = "hm_seq", sequenceName = "hm_seq_id")
    private Long id;

    /**
     * 企业id
     */
    private Long enterpriseId;

    /**
     * 车间id
     */
    private Long workshopId;

    /**
     * 监测点id
     */
    private Long monitorId;

    /**
     * 减排方案id
     */
    private Long producesetId;

    @Column(name = "remark")
    private String remark;

}
